var $path_url = $('base').attr('href');
var controller = $('base').attr('data-controller');

$(document).ready(function(){

    var noticia = document.getElementById("noticia");
    if(noticia != null) {

        var editor = CKEDITOR.replace('noticia', {
            filebrowserBrowseUrl: '../assets/js/plugins/ckeditor/ckfinder/ckfinder.html',
            filebrowserImageBrowseUrl: '../assets/js/plugins/ckeditor/ckfinder/ckfinder.html?type=Images',
            filebrowserFlashBrowseUrl: '../assets/js/plugins/ckeditor/ckfinder/ckfinder.html?type=Flash',
            filebrowserUploadUrl: '../assets/js/plugins/ckeditor/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
            filebrowserImageUploadUrl: '../assets/js/plugins/ckeditor/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
            filebrowserFlashUploadUrl: '../assets/js/plugins/ckeditor/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash'
        });

    }

});